using System.Collections.Generic;

namespace OracleInternal.ConnectionPool
{
	internal class CPComparer : IComparer<object>
	{
		public static CPComparer s_cpComparer;

		static CPComparer()
		{
			s_cpComparer = new CPComparer();
		}

		public int Compare(object x, object y)
		{
			int count = ((OraclePool)x).m_cpQueuePR.Count;
			int count2 = ((OraclePool)y).m_cpQueuePR.Count;
			if (count < count2)
			{
				return 1;
			}
			if (count == count2)
			{
				return 0;
			}
			return -1;
		}
	}
}
